package cn.yl.course.server.entity.dto;

import cn.yl.course.server.entity.CourseMedia;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class CourseLessonDto {

    private CourseMedia courseMedia; // 一小节课对应一个视频

    private Integer id;

    @ApiModelProperty("章节id")
    @TableField("section_id")
    private Integer sectionId;

    @ApiModelProperty("课时主题")
    @TableField("theme")
    private String theme;

    @ApiModelProperty("课时时长(分钟)")
    @TableField("duration")
    private Integer duration;

    @ApiModelProperty("是否免费")
    @TableField("is_free")
    private Boolean free;
}
